function del(id,obj){
    $.ajax({
        type: "patch",
        url: "/admin/comments/"+id,
        success: function (res) {
            if(res.status==204){
               alert('删除成功');
               $(obj).parents('tr').remove();
            }else{
                alert('删除失败');
            }
        }
    });
}